//
//  RxWebViewController.h
//  RxWebViewController
//
//  Created by roxasora on 15/10/23.
//  Copyright © 2015年 roxasora. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
#import <JavaScriptCore/JavaScriptCore.h>
#import "CustomViewController.h"

@interface RxWebViewController : CustomViewController

/**
 *  origin url
 */
@property (nonatomic, strong)NSURL *url;

/**
 *  origin url
 */
@property (nonatomic, strong)NSString *htmlString;

/**
 *  embed webView
 */
@property (nonatomic, strong)WKWebView *webView;

/**
 *  tint color of progress view
 */
@property (nonatomic, strong)UIColor *progressViewColor;

/**
 *  是否显示导航栏
 */
@property (nonatomic, assign)BOOL showNavigation;


@property (nonatomic, strong)UIColor *titelColor;

/**
 *  状态栏颜色
 */
@property (nonatomic, assign) UIStatusBarStyle statusType;

/**
 *  状态栏颜色
 */
@property (nonatomic, assign) BOOL showWebTitel;

/**
 *  get instance with url
 *
 *  @param url url
 *
 *  @return instance
 */
- (instancetype)initWithUrl:(NSURL*)url;


/**
 html

 */
- (instancetype)initWithHTML:(NSString*)htmlString;

/**
 *  get instance with url JS
 */
- (void)addScriptName:(NSString *)scriptName withComplete:(void (^)(WKScriptMessage *scriptMessage))scriptComplete;


- (void)reloadWebView;

- (void)webReloadData;

@end



